                            # 动手试一试
# 7-4 比萨配料
prompt = "\n请输入您想加入的配料："
prompt += "\n(想要结束请输入'quit')"

active = True
while active:
    toppings = input(prompt)

    if toppings == 'quit':
        active = False
        print("谢谢惠顾！")
    else:
        print("您向奶茶中加入了：" + toppings)
# 7-5 电影票
prompt = "\n请输入您的年龄(输入'quit'结束)："

active = True
while active:
    age = input(prompt)
    if age == 'quit':
        active = False
    elif int(age) < 3:
        print("您可以免费观看！")
    elif int(age) < 12:
        print("您需要支付10美元")
    else:
        print("您需要支付15美元")
# 7-8 熟食店
sandwich_orders = ['BLT', "Ploughman's", 'Tuna']
finished_sandwiches = []

for sandwich_order in sandwich_orders:
    print("I made your " + sandwich_order + " sandwich")
    finished_sandwiches.append(sandwich_order)

print(finished_sandwiches)
# 五香烟熏牛肉卖完了
print("五香烟熏牛肉卖完了")
sandwich_orders = ['pastrami','BLT', 'pastrami',
                   "Ploughman's", 'Tuna', 'pastrami',]

while 'pastrami' in sandwich_orders:
    sandwich_orders.remove('pastrami')

print(sandwich_orders)
# 7-10 梦想的度假胜地
places = {}
active = True

while active:
    name = input("请输入您的姓名：")
    place = input("您梦想的度假胜地是：")
    places[name] = place
    message = input("您还想让其他人回答吗？(是/否) ")
    if message == '否':
        active = False

print("--- 调查结果 ---")
for name, place in places.items():
    print(name + "梦想的度假胜地是：" + place)